/**商品规格接口模块 */
import axios from "../utils/request";
// 分页查看
export const getSpecsPage = (page, size) => axios({
    url: "/api/specslist",
    params: { page, size }
})
// 查看总数
export const getSpecsTotal = () => axios({
    url: "/api/specscount",
})
// 添加规格
export const addSpecs = (specsForm) => axios({
    url: "/api/specsadd",
    method: 'post',
    data: specsForm,
})
// 编辑规格
export const editSpecs = (specsForm) => axios({
    url: "/api/specsedit",
    method: 'post',
    data: specsForm,
})
// 删除规格
export const delSpecs = (id) => axios({
    url: "/api/specsdelete",
    method: 'post',
    data: { id },
})